#import <QObject>

#import "QtObject.h"
#import "DynamicQObject.h"

@implementation QtObject

-(id) init
{
    self = [super init];
    if(self != nil){
        _dy = new DynamicQObject;
    }

    return self;
}

-(id) free
{
    delete _dy;
    return [super free];
}

-(BOOL) connectObject: (QObject*)sender
             whenEmit: (const char*)signal
             toTarget: (id)target
        perform: (VirtualSlot*) slt
{
    return _dy->connect(sender, signal, target, slt);
}

@end

